package jmu.cyxwcy.librarymanagement.mapper;

import jmu.cyxwcy.librarymanagement.pojo.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2024-06-24
 */
@Mapper
public interface AdminMapper extends BaseMapper<Admin> {

    @Select("select * from library_management.admin where username=#{username}")
    Admin findByUserName(String username);


}
